package com.RKB.service.impl;

import com.RKB.dao.AnswerResultDao;
import com.RKB.pojo.AnswerResult;
import com.RKB.pojo.AnswerResult_Composition;
import com.RKB.service.AnswerResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AnswerResultServiceimpl implements AnswerResultService {

    @Autowired
    private AnswerResultDao answerResultDao;

    @Override
    public void updataErrorTypeScore(String errorType, Integer score, String uid) {
        answerResultDao.updataErrorTypeScore(errorType,score,uid);
    }

    @Override
    public void updataErrorNum(String errorType_num, Integer num, String uid) {
        answerResultDao.updataErrorNum(errorType_num,num,uid);
    }

    @Override
    public Integer findErrorTypeScore(String errorType, String uid) {
        return answerResultDao.findErrorTypeScore(errorType,uid);
    }

    @Override
    public Integer findErrorNum(String ErrorNum, String uid) {
        return answerResultDao.findErrorNum(ErrorNum,uid);
    }

    @Override
    public AnswerResult findOne(String uid) {
        return answerResultDao.findOne(uid);
    }

    @Override
    public void initializationUserAnalysis(String uid) {
        answerResultDao.initializationUserAnalysis(uid);
    }

    @Override
    public Integer findErrorNum_Composition(String ErrorNum, String uid) {
        return answerResultDao.findErrorNum_Composition(ErrorNum,uid);
    }

    @Override
    public void updataErrorNum_Composition(String errorType_num, Integer num, String uid) {
        answerResultDao.updataErrorNum_Composition(errorType_num,num,uid);
    }

    @Override
    public AnswerResult_Composition findOne_Composition(String uid) {
        return answerResultDao.findOne_Composition(uid);
    }
}
